package com.ninelock.config;

import com.ninelock.api.service.SqlToExcelService;
import org.apache.commons.io.FileUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.core.io.Resource;
import org.springframework.core.io.support.PathMatchingResourcePatternResolver;
import org.springframework.core.io.support.ResourcePatternResolver;
import org.springframework.stereotype.Component;

import java.io.File;
import java.io.IOException;
import java.io.InputStream;


/**
 * @Author wultn
 * @Date 15:06 2020/10/30
 * @Param
 * @return
 **/
@Component
public class SqlToExcelRunner implements ApplicationRunner {

	@Autowired
	private SqlToExcelService sqlToExcelService;

	@Override
	public void run(ApplicationArguments args) {
		sqlToExcelService.SqlToExcel();
	}
}
